package com.cn.wanxi.model;

public class ResultModel {
    public static final String SUCCESS="success";
    public static final String ERROR="error";
    private Integer code;//结果编码
    private String msg;//结果信息
    private Object data;//查询的结果

    public ResultModel(Object data) {
        this.data = data;
    }

    public ResultModel() {
    }

    public ResultModel(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
